from django.db import models

# Create your models here.
class StudentName(models.Model):
    
    student_name = models.CharField(max_length = 50)
    
    
    def __str__(self):
        return self.student_name


class ExamName(models.Model):

    exam_name = models.CharField(max_length = 50)

    def __str__(self):
        return self.exam_name



class ExamScore(models.Model):
    
    student = models.ForeignKey(StudentName,on_delete = models.CASCADE)
    exam = models.ForeignKey(ExamName,on_delete = models.CASCADE)
    exam_score = models.CharField(max_length = 50)

    def __str__(self):
        return self.exam_score
